package com.zf.yichat.model;

import java.io.Serializable;
import javax.persistence.*;

@Table(name = "video_tag")
public class VideoTag implements Serializable {
    @Id
    private Long id;

    /**
     * 标签名称
     */
    private String name;

    private static final long serialVersionUID = 1L;

    public VideoTag(Long id, String name) {
        this.id = id;
        this.name = name;
    }

    public VideoTag() {
        super();
    }

    /**
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取标签名称
     *
     * @return name - 标签名称
     */
    public String getName() {
        return name;
    }

    /**
     * 设置标签名称
     *
     * @param name 标签名称
     */
    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }
}